package com.ke.searchhouse.repository;

import com.ke.searchhouse.entity.Role;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author  keke
 * @create  2018/10/11 0011 下午 8:44
 * @desc 角色数据DAO
 **/
public interface RoleRepository extends JpaRepository<Role, Long> {

    List<Role> findRolesByUserId(Long userId);
}
